package com.lwj.liwanjia.model;

import com.lwj.liwanjia.api.ApiService;
import com.lwj.liwanjia.bean.AddGwcBean;
import com.lwj.liwanjia.bean.ScAddGwcBean;
import com.lwj.liwanjia.utils.RetrofitHelper;

import rx.Subscriber;
import rx.android.schedulers.AndroidSchedulers;
import rx.schedulers.Schedulers;

/**
 * Created by Administrator on 2017/10/16.
 */

public class ScAddGwcModel {
    public void getScData(String token, String commodityCode,double price, Subscriber<ScAddGwcBean> subscriber) {
        RetrofitHelper.getSingleRetrofit()
                .create(ApiService.class)
                .getScData(token, commodityCode,price)
                .subscribeOn(Schedulers.io())
                .observeOn(AndroidSchedulers.mainThread())
                .subscribe(subscriber);
    }
}
